/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

import java.util.List;
import entities.Product;
/**
 *
 * @author Garfield
 */
public abstract class ProductDAO { 
    public abstract int getCurId();
    public abstract void addProduct(Product obj);
    public abstract void editProduct(Product obj);
    public abstract Product findProductById(int id);
    public abstract List<Product> findProductByName(String key);
    public abstract List<Product> findProductByName(String key, String category);
    public abstract List<Product> sortByCategory(String category);
    public abstract List<Product> sortByName();
    public abstract List<Product> sortByLowestPrice();
    public abstract List<Product> sortByHighestPrice();
    public abstract List<Product> viewNewProducts();
    public abstract List<Product> viewNewProducts(String category);
    public abstract List<Product> viewRecentPopularSearches();
    public abstract List<Product> viewRecentProductsViewed();
  
}
